SELECT COALESCE(MAX(HID), 0) + 1 as nextID
FROM Haus;